import { combineReducers } from 'redux';

const dataReducer = (state = {dataSource:[]}, action: any) => {
    switch (action.type) {
        case 'VAR_MANAGE':
            return {
                ...state, dataSource: action.payload
            };
        default: return state;
    }
}

const rootReducers = combineReducers({
    datas:dataReducer
})

export default rootReducers;